<?php

class Error{
	public static function throwError( $msg, $code=400 ){
		echo '<pre>';
		debug_print_backtrace();
		echo '</pre>';
		die();
	}
	public static function debug( $var ){
		echo '<pre>';
		echo print_r( $var );
		echo "\n\n";
		debug_print_backtrace();
		echo '</pre>';
		die();
	}
}
